package com.woniuxy.lrz.carlproject.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.lrz.carlproject.controller.form.levelform.UpdateSecondLevelForm;
import com.woniuxy.lrz.carlproject.model.ServiceSecondLevel;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 二级分类服务表 服务类
 * </p>
 *
 * @author lrz
 * @since 2022-09-28
 */
public interface ServiceSecondLevelService extends IService<ServiceSecondLevel> {
    

    Page<ServiceSecondLevel> getAll(int current, int size);

    void add(String name, Integer serviceFirstId);

    void delById(Integer id);

    void updateSecondLevel(UpdateSecondLevelForm updateSecondLevelForm);

    Page<ServiceSecondLevel> getSecondLevelByFirstId(int serviceFirstId, int current, int size);
}
